package hmvictor.jpql;

import java.util.Date;

/**
 *
 * @author Victor
 */
public class ResultTypes {
    private static final Class[] simpleTypes=new Class[]{Character.class, Boolean.class, Number.class, String.class, Date.class};
    
    public static boolean isSimpleType(Object o){
        for(Class type: simpleTypes){
            if(o.getClass().equals(type)) {
                return true;
            }
        }
        return false;
    }
    

    public static boolean isArray(Object rowToTest) {
        return rowToTest instanceof Object[];
    }
    
}
